package controller;import javax.annotation.Resource;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.servlet.ModelAndView;import org.springframework.web.servlet.mvc.Controller;import entity.TaskInfo;import service.TaskService;@org.springframework.stereotype.Controllerpublic class UpdateController implements Controller {		@Resource(name="taskServiceImpl")	private TaskService ts;		public TaskService getTs() {		return ts;	}	public void setTs(TaskService ts) {		this.ts = ts;	}	@RequestMapping("update")	public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {		Integer id = Integer.parseInt(request.getParameter("id"));		TaskInfo ti = ts.findInfoById(id);		ModelAndView mv = new ModelAndView("update");		mv.addObject("taskInfo", ti);		return mv;	}}